<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewRequest.aspx.cs" Inherits="Ebiz.ViewRequest" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    #tblForm > tbody > tr > td{
        height: 24px;
        text-align:left;
    }
    .tdDot{text-align:center;width:6px;table-layout:fixed;}
    </style>
    <script src="js/viewrequest.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="server">
    <h3>View Request</h3>
    <form name="Form1" id="Form1" runat="server">
        <table id="tblForm" align="center" cellpadding="6" cellspacing="0" 
            style="font-size: 12px; font-family: Arial; width:100%">
            <tbody>
                <tr>
                    <td style="table-layout:fixed;width:170px;">CL Number</td>
                    <td class="tdDot">:</td>
                    <td colspan="5" style="font-weight:bold;">
                        <span id="spnID"><%= ViewData["CLNumber"] %></span>
                        <span id="spnViewer" style="display:none;"><%= ViewData["IDViewer"] %></span>
                    </td>
                </tr>
                <tr>
                    <td>Status</td>
                    <td class="tdDot">:</td>
                    <td colspan="5" style="color:Blue;"><%= ViewData["CLStatus"] %></td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                    <td colspan="5"><%= ViewData["CLButton"] %></td>
                </tr>
                <tr><td colspan="7">&nbsp;</td></tr>
                <tr>
                    <td>Distributor</td>
                    <td class="tdDot">:</td>
                    <td colspan="5"><%= ViewData["DistributorName"]%></td>
                </tr>
                <tr>
                    <td>Dicount Type</td>
                    <td class="tdDot">:</td>
                    <td colspan="5"><%= ViewData["DiscountType"]%></td>
                </tr>
                <tr>
                    <td>Channel</td>
                    <td class="tdDot">:</td>
                    <td colspan="5"><%= ViewData["ChannelName"]%></td>
                </tr>
                <tr>
                    <td>Previous CL#</td>
                    <td class="tdDot">:</td>
                    <td colspan="5"><%= ViewData["PreviousCL"]%></td>
                </tr>
                <tr>
                    <td>CL Customer Name</td>
                    <td class="tdDot">:</td>
                    <td colspan="5"><%= ViewData["CLCustomerName"]%></td>
                </tr>
                <tr>
                    <td>Customer Group</td>
                    <td class="tdDot">:</td>
                    <td colspan="5"><%= ViewData["CustomerGroup"]%></td>
                </tr>
                <tr>
                    <td>Customer List</td>
                    <td class="tdDot">:</td>
                    <td colspan="5">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="7">
                        <table id="Table1" class="tblstyle" border="0">
                            <thead style="display:block;">
                                <tr>
                                    <th colspan="2">Customer Code</th>
                                    <th rowspan="2" style="table-layout:fixed; width:263px;">Customer Name</th>
                                    <th rowspan="2" style="table-layout:fixed; width:254px;">Address</th>
                                    <th rowspan="2" style="table-layout: fixed; width:37px; text-align:center;">&nbsp;</th>
                                </tr>
                                <tr>
                                    <th style="table-layout:fixed; width:81px;">DIST</th>
                                    <th style="table-layout:fixed; width:81px;">AZI</th>
                                </tr>
                            </thead>
                            <tbody style="display:block; height:178px; overflow-y:scroll;">
                                <%= ViewCustomer["CustomerList"]%>
                            </tbody>
                        </table>
                        <div style="position: relative; color:#6600CC;">
                            <div class="fl_left">Total Customer:</div>
                            <div id="Div1" class="fl_left" style="margin-left:5px;">
                                <%= ViewCustomer["TotalCustomer"]%>
                            </div>
                            <div class="cl_left"></div>
                        </div>
                    </td>
                </tr>
                <tr><td colspan="7" style="height:36px;">&nbsp;</td></tr>
                <tr>
                    <td valign="top">Reason to give Discount</td>
                    <td valign="top" class="tdDot">:</td>
                    <td valign="top" colspan="5" rowspan="2">
                        <%= ViewData["DiscountReason"]%>
                    </td>
                </tr>
                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
                <tr>
                    <td>Date Start</td>
                    <td class="tdDot">:</td>
                    <td style="table-layout:fixed;width:180px;">
                        <%= ViewData["DateStart"]%></td>
                    <td style="table-layout:fixed;width:45px;">&nbsp;</td>
                    <td style="table-layout:fixed;width:90px;">Date End</td>
                    <td class="tdDot">:</td>
                    <td><%= ViewData["DateEnd"]%></td>
                </tr>
                <tr>
                    <td>Product Division</td>
                    <td class="tdDot">:</td>
                    <td colspan="5"><%= ViewData["ProductDivision"]%></td>
                </tr>
                <tr>
                    <td>Product List</td>
                    <td class="tdDot">:</td>
                    <td colspan="5">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="7">
                        <table id="tblProducts" class="tblstyle" border="0">
                            <thead style="display:block;">
                                <tr>
                                    <th style="table-layout: fixed; width:81px;">Product Code</th>
                                    <th style="table-layout: fixed; width:454px;">Product Name</th>
                                    <th style="table-layout: fixed; width:72px; text-align:center;">Disc<br />(%)</th>
                                    <th style="table-layout: fixed; width:72px; text-align:center;">Qty<br />Pcs</th>
                                    <th style="table-layout: fixed; width:37px; text-align:center;">&nbsp;</th>
                                </tr>
                            </thead>
                            <tbody style="display:block; height:178px; overflow-y:scroll;">
                                <%= ViewProduct["ProductList"]%>
                            </tbody>
                        </table>
                        <div style="position: relative; color:#6600CC;">
                            <div class="fl_left">Total Products:</div>
                            <div id="totalProd" class="fl_left" style="margin-left:5px;">
                                <%= ViewProduct["TotalProduct"]%>
                            </div>
                            <div class="cl_left"></div>
                        </div>
                    </td>
                </tr>
                <tr><td colspan="7">&nbsp;</td></tr>
                <tr>
                    <td valign="top">Supporting Documents</td>
                    <td class="tdDot" valign="top">:</td>
                    <td valign="top" colspan="5" rowspan="2">
                        <%= ViewData["FileList"]%>
                    </td>
                </tr>
                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
                <tr>
                    <td valign="top"><a id="apvProc">Approval Process</a></td>
                    <td valign="top" class="tdDot">:</td>
                    <td valign="top" colspan="5" rowspan="2"></td>
                </tr>
                <tr><td colspan="7"><%= ViewData["ApprovalList"]%></td></tr>
                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
                <tr><td colspan="7">&nbsp;</td></tr>
                <tr><td colspan="7">&nbsp;</td></tr>
                <tr>
                    <td colspan="7" style="text-align:center;">
                        <a href="Home.aspx" class="btnForm" title="Close and Back to Home">Close</a>
                        <%= ViewData["CLDownload"]%>
                        <%= ViewData["ApvButton"] %>
                        <%= ViewData["EditButton"] %>
                    </td>
                </tr>
                <tr><td colspan="7">&nbsp;</td></tr>
            </tbody>
        </table>
    </form>
</asp:Content>